package com.fastloan.mgt.customer.model;

import com.fastloan.mgt.customer.anno.EnumObj;
import com.fastloan.mgt.customer.anno.TagAnno;
import com.fastloan.mgt.customer.enums.CustomerEnums;
import com.kawins.base.baseabs.BaseModel;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * @author gelon createTime 2017/11/06 客户他行业务
 */
@javax.persistence.Table(name = "ZY_CUSTOMER_OTHER_BANK")
public class ZyCustomerOtherBank extends BaseModel<String> {


    /**
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TagAnno(name = "")
    private String id;
    /**
     * 客户id
     */
    @TagAnno(name = "客户id")
    private String customerId;
    /**
     * 是否他行客户
     */
    @TagAnno(name = "是否他行客户")
    private Integer weatherOtherBankCustomer;

    @Transient
    @EnumObj(mapping = "weatherOtherBankCustomer")
    private CustomerEnums.CommonYN[] weatherOtherBankCustomerEnums = CustomerEnums.CommonYN
        .values();

    /**
     * 银行名称
     */
    @TagAnno(name = "银行名称")
    private String bankName;
    /**
     * 是否有贷款经理
     */
    @TagAnno(name = "是否有贷款经理")
    private Integer havedLoan;

    @Transient
    @EnumObj(mapping = "havedLoan")
    private CustomerEnums.CommonYN[] havedLoanEnums = CustomerEnums.CommonYN.values();

    /**
     * 贷款产品
     */
    @TagAnno(name = "贷款产品")
    private String loanProject;
    /**
     * 当前贷款状态
     */
    @TagAnno(name = "当前贷款状态")
    private String loanStatus;
    /**
     * 其他
     */
    @TagAnno(name = "其他")
    private String other;

    public String getId() {
        return id;
    }

    public ZyCustomerOtherBank setId(String id) {
        this.id = id;
        return this;
    }

    public CustomerEnums.CommonYN[] getWeatherOtherBankCustomerEnums() {
        return weatherOtherBankCustomerEnums;
    }


    public CustomerEnums.CommonYN[] getHavedLoanEnums() {
        return havedLoanEnums;
    }


    public String getCustomerId() {
        return customerId;
    }

    public ZyCustomerOtherBank setCustomerId(String customerId) {
        this.customerId = customerId;
        return this;
    }

    public Integer getWeatherOtherBankCustomer() {
        return this.weatherOtherBankCustomer;
    }

    public ZyCustomerOtherBank setWeatherOtherBankCustomer(Integer weatherOtherBankCustomer) {
        this.weatherOtherBankCustomer = weatherOtherBankCustomer;
        return this;
    }

    public String getBankName() {
        return this.bankName;
    }

    public ZyCustomerOtherBank setBankName(String bankName) {
        this.bankName = bankName;
        return this;
    }

    public Integer getHavedLoan() {
        return this.havedLoan;
    }

    public ZyCustomerOtherBank setHavedLoan(Integer havedLoan) {
        this.havedLoan = havedLoan;
        return this;
    }

    public String getLoanProject() {
        return this.loanProject;
    }

    public ZyCustomerOtherBank setLoanProject(String loanProject) {
        this.loanProject = loanProject;
        return this;
    }

    public String getLoanStatus() {
        return this.loanStatus;
    }

    public ZyCustomerOtherBank setLoanStatus(String loanStatus) {
        this.loanStatus = loanStatus;
        return this;
    }

    public String getOther() {
        return this.other;
    }

    public ZyCustomerOtherBank setOther(String other) {
        this.other = other;
        return this;
    }
}
